With this procedure, the database file must be synchronized between all included computers. The synchronization can be done by an external program - or direct with this program. The advantage of this concept is that you don’t need a special database-server.
To avoid the usage by two persons at the same time, so called semaphore are implemented. For the usage, a file server, which can be accessed by all involved computers, is necessary. Instead of a server, a folder of a cloud service (Dropbox, iCloud,…) can be used. This file server can be used to synchronize the database file, too. Alternatively, you can use external programs (Synchronize, rsync...) to synchronize the database file.For the configuration, one of the following text files
must exist on every computer, which is included in this concept. This file must be in the same folder as the program. The file must include the following lines:
The first line contains the name and complete path of the semaphore-file on the server. If the second line is not empty, this program synchronizes the database file with the given file on the server. The following two lines can be used to execute a terminal command. This can be either a single command or a script. The command in the third line is executed before reading the semaphore file. Typically, it is used to mount the server. The command in the fourth line is executed after the test. This is useful when the server is to be ejected, again.
| Under macOS, a program with a graphical user interface can be started with the command "open -a <program>". This can be, for example, a program created with the script editor. |
The file "Mac-HaBu (Sema).txt" (Macintosh) may have the following content:
Richters Server:MacMoVeSemaopen -a "/Skripte/Mount.app"
Richters Server:Clients.rsd
open -a "/Skripte/Eject.app"
By every start and end of
the program the semaphore-file is examined and written with actual
values. By this, it can be guaranteed that always the actual version of
the database will be used. If the second line (path of database file on
the server) is used, this program compares the local and server
database file by every start. If the server version is newer, it
will be copied to the local database. When quitting this program, the
database file is copied to the server, again. The result is that there
is always the latest version on the server. The two apps on the third
and fourth lines are used to mount the server before the test and eject
it afterwards.
| Only experienced users should use this concept. |
| If the file server is not available, you can work with this program, too. In this case you must check that no other person works with this program and that the database is up to date. |